package ttelectronic.mobileholder.common;

public class MHCommon {
	public static String TAG = "TAG";
	public static String TAG_E = "TAG_E";

	public static final int CHOOSE_DEVICE = 1;

	// Key names received from the MHListDeviceActivity Handler
	public static final String EXTRA_DEVICE_MAC_ADDRESS = "EXTRA_DEVICE_MAC_ADDRESS";

	// Name for the SDP record when creating server socket
	public static final String NAME_SOCKET = "MobileHolderNameServer";

	// Message types sent from the BluetoothConnectingService Handler
	public static final int MESSAGE_STATE_CHANGE = 1;
	public static final int MESSAGE_READ = 2;
	public static final int MESSAGE_WRITE = 3;
	public static final int MESSAGE_DEVICE_NAME = 4;
	public static final int MESSAGE_TOAST = 5;
	public static final int MESSAGE_BATERY_LEVEL = 6;
	public static final int MESSAGE_MISS_CALL = 7;
	public static final int MESSAGE_SMS = 8;
	public static final int MESSAGE_AUTOCONNECTION = 9;

	// PIN
	public static int PIN_LEVEL = 1;

	// Message state from MHConectingService to MHMainActivity
	public static final int STATE_NONE = 0;
	public static final int STATE_LISTEN = 1;
	public static final int STATE_CONNECTING = 2;
	public static final int STATE_CONNECTED = 3;
	public static final String FAVORITE_GROUP_NAME = "TT-Favorite";

	// Key names received from the MHBluetoothConnectingService Handler
	public static final String DEVICE_NAME = "DEVICE_NAME";
	public static final String BUNDLE_BATERY_LEVEL = "MSG_BATERY_LEVEL";
	public static final String BUNDLE_MISS_CALL = "MSG_MISS_CALL";
	public static final String BUNDLE_SMS = "MSG_SMS";
	public static final String BUNDLE_MAC_ADDRESS = "BUNDLE_MAC_ADDRESS";
	public static final String TOAST = "TOAST";

	// Bluetooth status
	public static boolean BLUETOOTH_STATUS = false;
	// listener: 0, disconnection : 1 , connection : 2
	public static int BLUETOOTH_CONNECTION_STATUS = 1;

	// Post message
	public static final String POSTMSG_CALL_INCOMING = "ns";// do no thing
	public static final String POSTMSG_END_CALL = "ds";// turn all on, after
														// that, turn all off.
	public static final String POSTMSG_MISSED_CALL = "Ms";// led 2 turn on.
	public static final String POSTMSG_NO_MISSED_CALL = "cs";// turn all on,
																// after that,
																// turn all off
	public static final String POSTMSG_HAD_SMS = "ms";// led 3 turn on
	public static final String POSTMSG_NO_SMS = "es";// turn all on, after that,
														// turn all off
	public static final String POSTMSG_ALARM_INCOMING = "rs";// led 4 turn on
	public static final String POSTMSG_FAVORITE = "Ls";// led 1 turn on

	public static final String POSTMSG_PIN_EMPTY = "Es";
	public static final String POSTMSG_PIN_FULL = "Fs";
	public static final String POSTMSG_TEM_OVER = "Os";
	public static int PIN_CONFIGURATION = 60;
	public static int TEM_CONFIGURATION = 70;

	public static int PHONE_STATE = 0;

}
